package com.park.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.dao.ParkUserMapper;
import com.park.model.ParkUser;
import com.park.service.ParkUserService;

@Service
public class ParkUserServiceImpl implements ParkUserService {

	@Autowired
	private ParkUserMapper parkUserMapper;
	@Override
	public int deleteByUserId(int userId) {
		return parkUserMapper.deleteByUserId(userId);
	}

	@Override
	public int insert(List<ParkUser> parkUsers) {
		// TODO Auto-generated method stub
		return parkUserMapper.insert(parkUsers);
	}

	@Override
	public List<Long> getByUserId(Long id) {
		// TODO Auto-generated method stub
		return parkUserMapper.getByUserId(id);
	}

}
